package com.zhang.learn.loglearn.logback;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * logback clssic默认实现了slf4j api所以不用额外引入中间的转接包
 * @author zhanghaolian
 * @Description TODO
 * @ClassName LogbackTest
 * @date 2021/4/6 22:23
 */
public class LogbackTest {
    public static final Logger logger = LoggerFactory.getLogger(LogbackTest.class);

    /**
     * logback简使用,快速入门
     * logback默的日志级别是:debug
     *
     */
    @Test
    public void simpleTest() {
        for (int i = 0; i < 10000; i++) {
            logger.error("error");
            logger.warn("warn");
            logger.info("info");
            logger.debug("debug");
            logger.trace("trace");
        }
    }
}
